<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
登陆12312313123
<span>cookie</span>
<textarea id="cookie"></textarea>
<button id="collect" onclick="collect()">提交</button>
<span id="test"></span>
</body>
</html>
<script type="text/javascript" src="/sixi/webjars/jquery/3.3.1-2/jquery.min.js"></script>
<script>
    function collect() {

        let cookie = document.getElementById("cookie").value;
        var url = "order/collect";
        $.ajax({
            url: url,
            type: 'POST',
            data: {
                'cookie': cookie
            },
            success: function (arg) {
                console.log(arg);
            }
        })
    }
</script>